cmake_minimum_required(VERSION 3.1)
cmake_policy(SET CMP0048 NEW)
project(aes_enc VERSION 0.1.0.0)

# options
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g -O0 -Wno-unused-function -D_GNU_SOURCE")

include_directories("${CMAKE_CURRENT_BINARY_DIR}"
	"${PROJECT_BINARY_DIR}"
	"${PROJECT_SOURCE_DIR}"
	)

set(AES_ENC
aes.c
)

set (STAGING_DIR $(STAGING_DIR))

# target
add_executable(aes_enc ${AES_ENC})
target_link_libraries(aes_enc crypto)

# install
install(TARGETS aes_enc DESTINATION bin)
